package com.pug.feign;

import com.pug.handler.FeignLoggerConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "xq-user-service",
        configuration = FeignLoggerConfiguration.class,
        fallbackFactory = UserServiceFeignFallbackFactory.class)
public interface UserServiceFeign {

    @GetMapping("/discountbit")
    boolean discountbit(@RequestParam("userId") Long userId, @RequestParam("money") String money);
}
